package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 课程表
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2021-10-16 13:42:19
 */
@Data
@TableName("jx_course_schedule")
public class JxCourseScheduleEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 课程
	 */
	@NotNull(message="请选择课程", groups = {AddGroup.class, UpdateGroup.class})
	private Long courseId;
	/**
	 * 实验室id
	 */
	@NotNull(message="请选择实验室", groups = {AddGroup.class, UpdateGroup.class})
	private Long laboratoryId;
	/**
	 * 授课老师
	 */
	@NotNull(message="请选择授课教师", groups = {AddGroup.class, UpdateGroup.class})
	private Long teacherId;
	/**
	 * 开始时间
	 */
	@NotNull(message="请选择开始时间", groups = {AddGroup.class, UpdateGroup.class})
	private Date begainTime;
	/**
	 * 结束时间
	 */
	@NotNull(message="请选择结束时间", groups = {AddGroup.class, UpdateGroup.class})
	private Date endTime;
	/**
	 * 授课日期
	 */
	private String courseDay;
	/**
	 * 时间阶段
	 */
	private String timeStage;
	/**
	 * 教师名称
	 */
	@TableField(exist=false)
	private  String teacherName;
	/***
	 * 实验室
	 */
	@TableField(exist=false)
	private  String laboratoryName;
	/**
	 * 课程名称
	 */
	@TableField(exist=false)
	private  String courseName;
	/**
	 * 状态
	 */
	private  String status;
	/**
	 * 课程批次
	 */
	@NotNull(message="请输入课程批次", groups = {AddGroup.class, UpdateGroup.class})
	private Integer batch;
	/**
	 * 使用率
	 */
	private Double usageRate;
}
